#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

// 一维数组 交换数组
int main() 
{
	int arr1[10] = { 0 };
	int arr2[10] = { 0 };
	int sz = sizeof(arr1) / sizeof(arr1[0]);
	int i = 0;
	int ret = 0;
	for (i = 0; i < sz; i++) 
	{
		scanf("%d", &arr1[i]);
	}
	for (i = 0; i < sz; i++)
	{
		scanf("%d", &arr2[i]);
	}
	for (i = 0; i < sz; i++)
	{
		ret = arr1[i];
		arr1[i] = arr2[i];
		arr2[i] = ret;
	}
	for (i = 0; i < sz; i++)
	{
		printf("%d ", arr1[i]);
	}
	printf("\n");
	for (i = 0; i < sz; i++)
	{
		printf("%d ", arr2[i]);
	}
	printf("\n");

	return 0;
}